package 桥接模式;

public class Client {
    public static void main(String[] args) {
        Color color;
        Pen pen;
        color= new Color() {
            @Override
            public void bepaint(String penType, String name) {
            }
        };
        pen= new Pen() {
            @Override
            public void draw(String name) {
            }
        };
        pen.setColor(color);
        pen.draw("鲜花");
    }
}
